const Service = require('../../core/service/ApiService');

class InternalDao extends Service {

    async resetAgedSvcStatus(){
        await this.model.Aged.update({
            svc_status: this.constant.AGED_SVC_STATUS.NOT_STARTED
        },{
            where: {}
        })
    }

    async resetSvcStaffCurMonthSvcCnt(){
        await this.model.ServiceStaff.update({
            cur_month_svc_abn_cnt: 0,
            cur_month_svc_cnt: 0
        },{
            where: {}
        })
    }
}


module.exports = InternalDao;
